﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace dkProfiler
{
    /// <summary>
    /// Class for conversion of various stats and ratings
    /// </summary>
    public static class StatConverter
    {
        public static double CritFromAgility(int agility, int level)
        {
            return (double)agility / 62.5d;
        }

        public static double CritFromRating(int rating, int level)
        {
            return (double)rating / 45.91d;
        }

        public static double DodgeFromAgility(int agility, int level)
        {
            return (double)agility / 84.74576271d;
        }

        public static double ExpertiseFromRating(int rating, int level)
        {
            return (double)rating / 32.79d;
        }

        public static double HasteFromRating(int rating, int level)
        {
            return (double)rating / 32.79d;
        }

        public static double HitFromRating(int rating, int level)
        {
            return (double)rating / 32.79d;
        }

        public static double SpellCritFromRating(int rating, int level)
        {
            return (double)rating / 45.91d;
        }

        public static double SpellCritFromIntellect(int intellect, int level)
        {
            return (double)intellect / 166.6667d;
        }

        public static double SpellHitFromRating(int rating, int level)
        {
            return (double)rating / 26.23d;
        }
    }
}
